import request from '@/utils/request'

// 查询肉鸡死亡登记列表
export function listChickenDeathRecords(query) {
  return request({
    url: '/btlfbreed/chickenDeathRecords/list',
    method: 'get',
    params: query
  })
}

// 查询肉鸡死亡登记详细
export function getChickenDeathRecords(id) {
  return request({
    url: '/btlfbreed/chickenDeathRecords/' + id,
    method: 'get'
  })
}

// 新增肉鸡死亡登记
export function addChickenDeathRecords(data) {
  return request({
    url: '/btlfbreed/chickenDeathRecords',
    method: 'post',
    data: data
  })
}

// 修改肉鸡死亡登记
export function updateChickenDeathRecords(data) {
  return request({
    url: '/btlfbreed/chickenDeathRecords',
    method: 'put',
    data: data
  })
}

// 删除肉鸡死亡登记
export function delChickenDeathRecords(id) {
  return request({
    url: '/btlfbreed/chickenDeathRecords/' + id,
    method: 'delete'
  })
}
// 初始化下拉框
export function getOptionUserselect() {
  return request({
    url: '/api/optionUserselect',
    method: 'get'
  })
}

// 初始化下拉框
export function getOptionCheckselect() {
  return request({
    url: '/api/optionCheckselect',
    method: 'get'
  })
}
